package edu.spec.student.dao.iface;

import edu.spec.student.model.lecture.Lecture;
import edu.spec.basic.model.enumeration.Status;
import org.madgecko.basic.dao.IBaseDao;
import org.madgecko.basic.model.Pager;

import java.util.List;

public interface ILectureDao extends IBaseDao<Lecture> {
    Pager<Lecture> findByCon(Status status, String keyword);

    /**
     * 查询最新的讲座，即未开始的讲座（时间未到）
     * @return
     */
    List<Lecture> listLatestLecture();
    void safeDelete(Integer id);
}
